package com.jdls.web;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.jdls.pojo.Student;
import org.junit.Test;

/**
 * @author 嘉德罗斯
 * @date 2021/9/5
 */
public class test {
    @Test()
    public void method1() {
        Student student = new Student("嘉德罗斯",20,"男");
        String s = JSON.toJSONString(student);
        System.out.println(s);
        Student ss = JSON.parseObject(s,Student.class);
        System.out.println(ss);
    }
}
